# 使用Ubuntu作为基础镜像
FROM ubuntu:latest

# 安装wget（如果curl未预装）
RUN apt-get update && apt-get install -y wget

# 添加apt仓库的GPG密钥
RUN wget -qO - https://ngrok-agent.s3.amazonaws.com/ngrok.asc | tee /etc/apt/trusted.gpg.d/ngrok.asc

# 添加apt仓库源
RUN echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | tee /etc/apt/sources.list.d/ngrok.list

# 更新apt索引
RUN apt-get update

# 安装ngrok（替换为你的实际工具名）
RUN apt-get install -y ngrok

ENV NGROK_AUTHTOKEN 2kDcLvFJ1FauzQvxuW6XHrLYvuC_7F3hfAjQAUHUx1xqSAzp4

# 设置容器启动时执行的命令（如果需要的话）
# CMD ["ngrok", "some-default-args"]
CMD ["ngrok", "http", "--domain=mint-driving-minnow.ngrok-free.app", "172.16.2.12:3080"]
